<?php
use yii\helpers\Json;
use yii\helpers\Html;
use front\assets\AppAsset;
use yii\helpers\Url;
?>
<?php
$this->title = '评论';
?>
<div class="m-cmmt">

    <h4 class="note">全部<?= $data['count']?>条评论</h4>
    <!--评论列表循环开始-->
    <?php foreach($data['list'] as $k=>$v){?>
    <dl>
        <dt><b><?= $v['user_name']?></b><span><small style="width:100%;"></small></span><em><?= $v['created_at']?></em></dt>
        <dd class="desc"><?= $v['content']?></dd>
        <dd class="img J_showImg">
            <img src="<?=AppAsset::register($this)->baseUrl?>/static/img/tmp001.jpg"/>
            <img src="<?=AppAsset::register($this)->baseUrl?>/static/img/tmp003.jpg" />
            <img src="<?=AppAsset::register($this)->baseUrl?>/static/img/tmp003.jpg" />
            <img src="<?=AppAsset::register($this)->baseUrl?>/static/img/tmp003.jpg" />
            <img src="<?=AppAsset::register($this)->baseUrl?>/static/img/tmp003.jpg" />
        </dd>
        <dd class="attr">
            <!--循环输出购买的商品属性开始-->
            <?php foreach($v['product'] as $key=>$val){
                if($key != 'product_id'){?>
            <em><?= $key?>:</em><i><?= $val?></i>
            <?php }} ?>
            <!--循环输出购买的商品属性结束-->
        </dd>
    </dl>
    <?php } ?>
    <!--评论列表循环结束-->

</div>

<script>
    $(function(){

        console.log(0);
    });
</script>